import request from "../utils/request"

//添加分类数据
export const addTitle = (data:any) => {
    return request.post('/addTitle',data)
}

//获取分类数据
export const getTitle = () => {
    return request.post('/getTitle')
}

//分类分页数据
export const pageTitle = (data:{page:number}) => {
    return request.post('/pageTitle',data)
}

//删除分类数据
export const deleteTitle = (data:{page:number,_id:string,oldName:string}) => {
    return request.post('/deleteTitle',data)
}

//修改分类数据
export const upTitle = (data:{page:number,name:string,_id:string,oldName:string}) => {
    return request.post('/upTitle',data)
}